<?php
namespace app\backend\common;

use lib\rule\ParentInit;

class CacheRegionController extends ParentInit {

    public static $output;

    public static $assign;

    public function _beginOb($data=[]){
        ob_start();
    }

    public function _output($contents){
        if (!empty(self::$assign)){
            extract(self::$assign);
        }
        include $contents;
       return ob_get_contents();
    }

    public function _clean(){
        ob_clean();
    }

    public function _endOb(){
        ob_end_clean();
    }

}